﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XinjeMesProgram.Entities.RoleAndUser
{
    /// <summary>
    /// 角色分配权限的请求载体类.
    /// </summary>
    public class RoleAssignPermissionPayload
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="RoleAssignPermissionPayload"/> class.
        /// </summary>
        public RoleAssignPermissionPayload()
        {
            this.Permissions = new List<string>();
        }

        /// <summary>
        /// Gets or sets 角色编码.
        /// </summary>
        public string RoleCode { get; set; }

        /// <summary>
        /// Gets or sets 权限列表.
        /// </summary>
        public List<string> Permissions { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether gets or sets 是否用户自定义.
        /// </summary>
        public bool IsUserDefined { get; set; }
    }
}
